<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="application/javascript" charset="utf-8">
        /**
         * js中的数组类似java中的map容器，长度可随意改变，元素类型任意
         */
        var arr = [1,2,3,true,new Date()];
        //var result = arr.shift();
        var result = arr.unshift(10,false);
        alert(arr);
        alert(result);
    </script>
</head>
<body>
</body>
</html>